import { IsString } from "class-validator";
import { BaseEntity } from "../BaseEntity";
import { Model } from "sequelize";

export default class MessageListEntity extends BaseEntity {
  id?: number;
  
  @IsString()
  public type: string;

  @IsString()
  public title: string;

  @IsString()
  public content: string;

  public static transform(plainObject: object): MessageListEntity {
    return super.baseTransform(MessageListEntity, plainObject);
  }
}

export interface IMessageListModel extends Model<MessageListEntity> {}
